package com.chinamsp.xls;

import java.util.List;

import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * xls web 配置，主要用于处理 mvc xls/xlsx response
 * @author shifenghu
 * @version 1.0
 */
@Configuration
public class XlsWebConfiguration extends WebMvcConfigurerAdapter {

	@Override
	public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
		converters.add(new XlsMessageConverter());
	}

}
